<div class="wrapper-md">
	<div class="panel-default" style="display: none" id="queryCaseId">
		<div class="panel-body form-inline">
			<div class="form-group col-sm-6">
				<label class="control-label">案例名称：</label>
				<input type="text" name="searchCriteria.name" ng-model="searchCriteria.name" class="form-control input-sm" style="width: 60%"/>
			</div>
			<div class="form-group col-sm-6">
				<label class="control-label">文件名称：</label>
				<input type="text" name="searchCriteria.fileName" ng-model="searchCriteria.fileName" class="form-control input-sm" style="width: 60%"/>
			</div>
			<div class="line line-dashed b-b line-lg"></div>
			<div class="form-group col-sm-6">
				<label class="control-label">登录机构：</label>
				<input type="text" name="searchCriteria.siteCode" ng-model="searchCriteria.siteCode" class="form-control input-sm" style="width: 60%"/>
			</div>
			<div class="form-group col-sm-6">
				<label class="control-label">案例状态：</label>
				<select class="form-control input-sm" name="searchCriteria.status" ng-model="searchCriteria.status" style="width: 60%" 
					ng-options="key as value for (key,value) in $msg('STATUS')">
					<option></option>
				</select>
			</div>
			<div class="line line-dashed b-b line-lg"></div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">案例列表</div>
		<div class="panel-body">
			<button
				ui-upload='{"upBtn":"null","uploader":"uploader","onAdd":"onAdd","onBefore":"onBefore",
								"onProgress":"onProgress","onAfter":"onAfter"}'
				class="btn btn-info btn-sm m-l-sm">上传</button>
			<button ng-click="updateCase()" class="btn btn-info btn-sm m-l-sm">修改</button>
			<button ng-click="deleteCase()" class="btn btn-info btn-sm m-l-sm">删除</button>
			<button ng-click="openQueryCase()" class="btn btn-sm m-l-sm" ng-class="{true: 'btn-warning', false: 'btn-info'}[isQuery]">查询</button>
			<button ng-click="refreshCase()" class="btn btn-info btn-sm m-l-sm">刷新</button>
			<button ng-click="stopCase()" class="btn btn-info btn-sm m-l-sm">强制结束</button>
			<button ng-click="monitorCase()" class="btn btn-info btn-sm m-l-sm">监控</button>
			<button ng-click="runCase()" class="btn btn-info btn-sm m-l-sm">运行</button>
		</div>
		<div class="table-responsive" ui-table="pageConfig"></div>
	</div>
	<textarea id="updateCaseId" spellcheck="false" style="width: 1000px; height: 380px; border: none; display: none"></textarea>
	<div id="monitorId" style="display: none">
		<tabset class="tab-container" id="monitorId"> <tab ng-repeat="tab in tabs" active="tab.active"> <tab-heading>
		<span class="label bg-success" ng-if="tab.errorMsg==null">正常</span> <span class="label bg-danger"
			ng-if="tab.errorMsg!=null">错误</span>{{tab.title}} </tab-heading>
		<div ng-repeat="info in tab.stepInfos">
			<span>{{info.str}}</span>
			<span ng-if="info.imageFileName!=null" style="cursor: pointer;"><i class="icon-camera" ng-click="showImg(info.imageFileName)"></i></span>
		</div>
		</tab> </tabset>
	</div>
</div>